import { httpRequest } from '../httpRequest'
import _ from 'lodash'
//压缩文件上传
export const compress = (data) => {
    return httpRequest({
        url: `/file_handle/compress`,
        method: 'POST',
        data,
        responseType: 'blob',
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    })
}
// 解压缩文件上传
export const decompress = (data) => {
    return httpRequest({
        url: `/file_handle/decompress`,
        method: 'POST',
        data,
        responseType: 'blob',
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    })
}
// 查询压缩文件
export const getCompressList = (params) => {
    return httpRequest({
        url: `/file_handle/compress_record_list`,
        method: 'GET',
        params,
    })
}
// 查询解压缩文件
export const getDeCompressList = (params) => {
    return httpRequest({
        url: `/file_handle/decompress_record_list`,
        method: 'GET',
        params,
    })
}
// 压缩文件下载
export const downloadCompressFile = (params) => {
    return httpRequest({
        url: `/file_handle/download`,
        method: 'GET',
        responseType: 'blob',
        params,
    })
}
